<template>
  <div id="wrap"
       class="header">
    <div class="header-left">
      <span class="iconfont">&#xe624;</span>
    </div>
    <div class="header-input">
      <input type="text"
             placeholder="请输入内容">
    </div>
    <div class="header-right">
      <div style="margin-right:.4rem;">城市</div>
      <span class="iconfont">&#xe62d;</span>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Header',
  data () {
    return {
    }
  }
}
</script>

<style lang='scss' scoped>
@import "~styles/base.scss";
.header {
  background-color: $bg-color;
  padding: 0.8rem 0;
  display: flex;
  flex-direction: row;
  &-left {
    width: 2.48rem;
    font-size: 0.8rem;
    padding-left: 0.5rem;
    vertical-align: middle;
    line-height: 2rem;
  }
  &-input {
    flex: 1;
    margin-right: 2rem;
    input {
      border: none;
      border-radius: 0.2rem;
      padding: 0.3rem 0.4rem;
      width: 100%;
    }
  }
  &-right {
    display: flex;
    flex-direction: row;
    margin-right: 0.8rem;
    font-size: 0.8rem;
    line-height: 2rem;
  }
}
</style>
